# export STAGING_DIR=/home/share/samba/tina_linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)

set(TOOLCHAIN_DIR "/home/share/samba/tina_linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin")
set(TOOLCHAIN_PRE "arm-openwrt-linux-")

set(CMAKE_C_COMPILER "${TOOLCHAIN_DIR}/${TOOLCHAIN_PRE}gcc")
set(CMAKE_CXX_COMPILER "${TOOLCHAIN_DIR}/${TOOLCHAIN_PRE}g++")
set(CMAKE_AS_COMPILER "${TOOLCHAIN_DIR}/${TOOLCHAIN_PRE}gcc")